DefaultEventHandler.handle   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
1
import { EventsHandler, IEventHandler } from '@nestjs/cqrs';
2
import { DefaultEvent } from '../events/default.event';
3
4
@EventsHandler(DefaultEvent)
5
export class DefaultEventHandler implements IEventHandler<DefaultEvent> {
6
7
    handle(event: DefaultEvent) {
8
        console.info('handling event from DefaultEventHandler\n:', event);
9
    }
10
}
11